package com.interview02;

/**
 * Copyright (C), 2018-2020
 * FileName: Demo1
 * Author:   kongfanyu
 * Date:     2020/12/16 09:07
 */
public class Demo1 {
    public static void main(String[] args) {

        for (int i = 0; i < 50; i++) {
            new Thread( () ->{
                PresidentBlock presidentBlock = PresidentBlock.getInstance();
            },"线程"+i).start();
        }

    }

    private static void test1() {
        President p1 = President.getInstance();
        President p2 = President.getInstance();
        President p3 = President.getInstance();
        /*PresidentUSA p1 = PresidentUSA.getInstance();
        PresidentUSA p2 = PresidentUSA.getInstance();
        PresidentUSA p3 = PresidentUSA.getInstance();*/
    }
}
